const Koa = require('koa')
const CatchError = require('./core/middleware/exception')
const app = new Koa()
app.use(CatchError)
app.use(require("./core/cors"))
const koaBody = require('koa-body');
// app.use(koaBody(
//     {
//         multipart: true,
//         formidable: {
//             maxFileSize: 200 * 1024 * 1024
//         }
//     }))
app.use(require('koa-static')(__dirname + '/public'))
const InitMar = require('./core/init')
InitMar.initCore(app)
console.log(app)
app.listen(8899)
